import ajax from './ajax'

// http://39.97.33.178/api/cityList

// 获取城市
export const cityList = ()=>ajax('/api/cityList')

// export const bj = ()=>ajax('/bj')

// 正在热映
// http://39.97.33.178/api/movieOnInfoList?cityId=10
export const NowPlay = (cityId)=>ajax('/api/movieOnInfoList',cityId)
// 即将上映
export const ComingPlay = (cityId)=>ajax('/api/movieComingList',cityId)
// 搜索
export const search = (searchList) =>ajax('/api/searchList',searchList)
search
// 电影详情
export const detailmovie = (movieId) =>ajax('/api/detailmovie',movieId)

// 影院
export const cinemaList = (cityId)=>ajax('/api/cinemaList',cityId)
// 城市定位
// http://39.97.33.178/api/getLocation
export const getLocation = ()=>ajax('/api/getLocation')
